<cfsilent>
	<cfsetting requesttimeout="300">
    <cfparam name="URL.action" default="view" type="string">
</cfsilent><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<cfswitch expression="#LCase(URL.Action)#">
	<cfcase value="view">
    	<cf_cfug_scopecache name="feedoutput" scope="application">
            <cfset QFeeds = APPLICATION.oAggregator.GetAllFeedsQuery()>
            <cfoutput query="QFeeds">
            	<p><a href="#QFeeds.RSSLINK#">#QFeeds.TITLE#</a> (#QFeeds.blogname# - Published #DateFormat(QFeeds.PUBLISHEDDATE,"dd mmm yyyy")#)</p>
            	<p>#Left(REReplace(QFeeds.CONTENT,"<[^>]*>","","All"),300)#...</p>
                <hr noshade="noshade" size="1" />
            </cfoutput>
        </cf_cfug_scopecache>
    </cfcase>
    <cfcase value="ping">
    	<cftry>
            <cfparam name="URL.blogID" type="numeric" default="0">
			<cfif URL.blogID EQ 0>
                <p>No blog ID specified</p>
            <cfelse>
            	<cfset APPLICATION.oAggregator.DoPing(URL.blogID)>
                <cf_cfug_scopecache name="feedoutput" scope="application" clear="true">
                <p>Your blog was pinged</p>
            </cfif>
            <cfcatch type="any">
            	<p>Incorrect blog ID specified</p>
            </cfcatch>
        </cftry>
    </cfcase>
</cfswitch>


</body>
</html>
